import http from '@/common/http'

export const queryOneAll = (params) => {
  const url = `user/queryOneAll`
  return http.post(url,
    params
  )
}

export const addUser = (params) => {
  const url = `user`
  return http.post(url,
    params
  )
}

export const upUser = (params) => {
  const url = `user/update`
  return http.post(url,
    params
  )
}

export const deteleUser = (params) => {
  const url = `user/${params}`
  return http.delete(url)
}

export const updateStatus = (params) => {
  const url = `user/updateStatus/${params.id}/${params.status}`
  return http.get(url)
}

export const resetPassword = (params) => {
  const url = `user/resetPassword/${params.id}/${params.password}`
  return http.get(url)
}
